'''
Author: jianfanfan 是是是
Date: 2025-09-05 17:11:52
LastEditors: jianfanfan 是是是
LastEditTime: 2025-09-05 17:20:07
FilePath: \python\init.py
Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
'''
import requests;


class SimpleCrawler:
    def crawl(self,params=None):
        
        url = "https://www.zhihu.com/api/v4/columns/pythoneer/followers"

        params = {"limit":20, "offset": 0, "include": "data[*].follower_count, gender, is_followed, is_following"}

        headers = {
              "authority": "www.zhihu.com",
                    "user-agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) "
                          "AppleWebKit/537.36 (KHTML, like Gecko) Chrome/63.0.3239.84 Safari/537.36",
            }
        response  = requests.get(url, headers=headers, params=params)

        print("请求url:", response.url)
        print("返回数据:", response.text)

        for follower in response.json()["data"]:
            print(follower)

if __name__ == "__main__":
    SimpleCrawler().crawl()